<template>
  <el-menu-item :index="to">
    <slot>{{ label }}</slot>
  </el-menu-item>
</template>

<script setup>
defineProps({
  to: {
    type: String,
    required: true
  },
  label: {
    type: String,
    default: ''
  }
})
</script>